<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_name" data-rule="required" class="form-control" name="row[user_name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Idcard')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-id_card" class="form-control" name="row[id_card]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sex')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-sex" data-rule="required" class="form-control selectpicker" name="row[sex]">
                {foreach name="sexList" item="vo"}
                    <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Phone')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-phone" data-rule="required" class="form-control" name="row[phone]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Other_duty')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-other_duty" class="form-control" name="row[other_duty]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Duty_date')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-duty_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[duty_date]" type="text" value="{:date('Y-m-d')}">
        </div>
    </div>
    {if $labor_id =='0'}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Reward_month')}:</label>
        <div class="col-xs-4 col-sm-2">
            <input id="c-reward_month" class="form-control" step="0.01" name="row[reward_month]" type="number" value="0.00">
        </div>
        <div class="col-xs-4 col-sm-4">
            元/每月 
        </div>
    </div>
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Explain_total')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-explain_total" data-rule="required" class="form-control" name="row[explain_total]" type="number" value="0">
        </div>
    </div>
    {if $labor_id == '0'}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-user_type" data-rule="required" class="form-control selectpicker" name="row[user_type]">
                {foreach name="userTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="self"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group labor">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pt_labor_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pt_labor_id" data-source="pt/labor/index" class="form-control selectpage" name="row[pt_labor_id]" type="text" value="">
        </div>
    </div>
    {else/}
        <input type="hidden" id="c-user_type" class="form-control" name="row[user_type]" type="text" value="labor">
        <input type="hidden" id="c-pt_labor_id" class="form-control" name="row[pt_labor_id]" type="text" value="{$labor_id}">
    {/if}
    <div class="form-group self">
        <label class="control-label col-xs-12 col-sm-2">{:__('Bank_code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-bank_code" class="form-control" name="row[bank_code]" type="text">
        </div>
    </div>
    <div class="form-group self">
        <label class="control-label col-xs-12 col-sm-2">{:__('Bank_openname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-bank_openname" class="form-control" name="row[bank_openname]" type="text">
        </div>
    </div>
    <div class="form-group self">
        <label class="control-label col-xs-12 col-sm-2">{:__('Idcard_front_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-idcard_front_image" class="form-control" size="50" name="row[idcard_front_image]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-idcard_front_image" class="btn btn-danger faupload" data-input-id="c-idcard_front_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-idcard_front_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-idcard_front_image" class="btn btn-primary fachoose" data-input-id="c-idcard_front_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-idcard_front_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-idcard_front_image"></ul>
        </div>
    </div>
    <div class="form-group self">
        <label class="control-label col-xs-12 col-sm-2">{:__('Idcard_back_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-idcard_back_image" class="form-control" size="50" name="row[idcard_back_image]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-idcard_back_image" class="btn btn-danger faupload" data-input-id="c-idcard_back_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-idcard_back_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-idcard_back_image" class="btn btn-primary fachoose" data-input-id="c-idcard_back_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-idcard_back_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-idcard_back_image"></ul>
        </div>
    </div>
    <div class="form-group self">
        <label class="control-label col-xs-12 col-sm-2">{:__('Stu_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-stu_image" class="form-control" size="50" name="row[stu_image]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-stu_image" class="btn btn-danger faupload" data-input-id="c-stu_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-stu_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-stu_image" class="btn btn-primary fachoose" data-input-id="c-stu_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-stu_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-stu_image"></ul>
        </div>
    </div>
    <div class="form-group self">
        <label class="control-label col-xs-12 col-sm-2">{:__('Retired_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-retired_image" class="form-control" size="50" name="row[retired_image]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-retired_image" class="btn btn-danger faupload" data-input-id="c-retired_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-retired_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-retired_image" class="btn btn-primary fachoose" data-input-id="c-retired_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-retired_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-retired_image"></ul>
        </div>
    </div>
    <div class="form-group self">
        <label class="control-label col-xs-12 col-sm-2">{:__('Insurance_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-insurance_image" class="form-control" size="50" name="row[insurance_image]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-insurance_image" class="btn btn-danger faupload" data-input-id="c-insurance_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-insurance_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-insurance_image" class="btn btn-primary fachoose" data-input-id="c-insurance_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-insurance_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-insurance_image"></ul>
        </div>
    </div>
    <div class="form-group intern">
        <label class="control-label col-xs-12 col-sm-2">{:__('Period_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-period_type" class="form-control" name="row[period_type]" type="text">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
